<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="randomId" class="com.lmpop.frame.util.RandomID" scope="page" /> 
<html>
<%
	String pay_id =  randomId.GenTradeId();
	String user_id="";	
	if( session.getAttribute("session_user_id") != null )
	{
		user_id = session.getAttribute("session_user_id").toString();
	}
	String in_date=new Date().toLocaleString();
%>
  <head>
    <title>ti_payment Manager</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type="text/javascript" src="payment.js"></script>
	<script type="text/javascript" src="/program/admin/js/judgment.js" charset="UTF-8"></script>
</head>

<body>
	<h1>新增支付方式</h1>
	
	<!--
	<table width="100%" align="center" cellpadding="0" cellspacing="0" class="dl_so">
        <tr>
          <td width="9%" align="center"><img src="/program/admin/index/images/ban_01.gif" /></td>
          <td width="91%" align="left">
		  <h4>-----------------</h4>
		  <span>1----------------。</span><br/>
		  <span>2----------------。</span>
		  </td>
        </tr>
      </table>
      <br/>
	  -->
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<table width="100%" cellpadding="1" cellspacing="1" border="0" class="listtab">
		
	<input name="pay_id" id="pay_id" type="hidden" value="<%=pay_id%>"/>
		
		<tr>
			<td align="right" width="15%">
				支付方式名称<font color="red">*</font>
			</td>
			<td align="left" width="20%"><input name="pay_name" id="pay_name" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)" /></td>
			<td align="right" width="15%">
				支付方式编码<font color="red">*</font>
			</td>
			<td><input name="pay_code" id="pay_code" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)" /></td>			
		</tr>
		

		
		<tr>
			<td align="right" width="15%">
				商户帐号<font color="red">*</font>
			</td>
			<td align="left" width="20%"><input name="pay_account" id="pay_account" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)"/></td>
			<td align="right" width="15%">
				商户密钥<font color="red">*</font>
			</td>
			<td><input name="passwd" id="passwd" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)" /></td>			
		</tr>
		
		<tr>
			<td align="right" width="15%">
				启用状态:
			</td>
			<td align="left" width="20%"><input name="enabled" id="enabled" type="radio" value="0" checked/>启用
					<input name="enabled" id="enabled" type="radio" value="1" />禁用
				</td>		
			<td align="right" width="15%">
				支付手续费:
			</td>
			<td><input name="hand_fare" id="hand_fare" type="text" maxlength="2" value="0" onKeyUp="if(!/^[0-9]*$/.test(this.value))this.value=''"/><font color="red">&nbsp;&nbsp;注:默认为0,如为1则手续费为1%</font></td>					
		</tr>
		<tr>
			<td align="right" width="15%">
				收款帐户:
			</td>
			<td colspan="3" align="left" width="20%"><input name="pay_email" id="pay_email" type="text" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)"/></td>	
		</tr>		
		<tr>
			<td align="right" width="15%">
				支付方式描述:
			</td>
			<td colspan="3"><textarea name="pay_desc" id="pay_desc" rows="6" cols="50" onkeyup="inputNoHorns(this)"   onbeforepaste= "inputNoHorns(this)"/></textarea>
		</tr>		

		<input name="user_id" id="user_id" type="hidden" value="<%=user_id%>"/>
		<input name="in_date" id="in_date" type="hidden" value="<%=in_date%>"/>

		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="9014" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkInfo();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
